﻿#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>订单管理</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/include/manage/js/jquery.js"></script>
<script language="javascript">
function checkAll() {
	if($('#selAll').attr("checked")){
		$('input[type=checkbox]').attr('checked', $('#selAll').attr("checked")); 
	}else{
		$('input[type=checkbox]').removeAttr("checked");
	}
}

function delSel(){
	if(confirm('确定要删除吗?')){
		var str='';
		$("input[name='sel_id']:checked").each(function(){
			str+=$(this).val()+",";
		});
		//alert("aaa"+str);
		$('#deleteid').val(str);
		$('#delform').submit();
	}
}
</script>
</head>
<body>
<form id="delform" name="delform" action="/manage_order.ad" method="post">
	<input type="hidden" name="parameter" value="delete" />
	<input type="hidden" id="deleteid" name="id" value="" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[系统管理]-[订单管理]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <!--td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_order.ad?parameter=add"><img src="/include/manage/images/main/22.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_order.ad?parameter=add">新增</a></div></td>
                  </tr>
                </table></td-->
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="javascript:delSel()"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="javascript:delSel()">删除</a></div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="changeto()"  onmouseout="changeback()">
		<tr>
            <td width="6%" height="22" background="/include/manage/images/main/bg.gif"><div align="center">
              <input type="checkbox" name="selAll" id="selAll" onClick="checkAll()" /><label for="selAll">全选</label>
            </div></td>
    <td width="100" background="/include/manage/images/main/bg.gif"><div align="center">订单编号</div></td>
		<td width="100" background="/include/manage/images/main/bg.gif"><div align="center">订购会员</div></td>
		<td width="*" background="/include/manage/images/main/bg.gif"><div align="center">订购商品</div></td>
        <td width="200" background="/include/manage/images/main/bg.gif"><div align="center">活动主题</div></td>
		<td width="100" background="/include/manage/images/main/bg.gif"><div align="center">订购费用</div></td>
		<td width="120" background="/include/manage/images/main/bg.gif"><div align="center">订购日期</div></td>
		<td width="100" background="/include/manage/images/main/bg.gif"><div align="center">订单状态</div></td>
    <td width="170" background="/include/manage/images/main/bg.gif"><div align="center">用户操作</div></td>
  </tr>
  #foreach ($order in $orderList)
  <tr> 
    <td height="20" bgcolor="#FFFFFF">
    	<input type="checkbox" name="sel_id" value="$!order.id" />
    </td>
    <td bgcolor="#FFFFFF">$!order.id</td>
		<td bgcolor="#FFFFFF"><a href="/user/admin/inc/useredit.jsp?acount=$!order.user">$!order.user</a></td>
		<td bgcolor="#FFFFFF">
        	#if($order.goods)
        	#foreach($good in $order.goods.split("\|"))
            	#if($good.length()>0)
            	$!good<br/>
                #end
        	#end
            #end
        </td>
        <td bgcolor="#FFFFFF">
        	#if($order.title)
        	#foreach($title in $order.title.split("\|"))
            	#if($title.length()>0)
            	$!title<br/>
                #end
        	#end
            #end
        </td>
		<td bgcolor="#FFFFFF">$!order.money</td>
		<td bgcolor="#FFFFFF">$!order.date</td>
		<td bgcolor="#FFFFFF">#if($order.status==0)未确认#else已确认#end</td>
    <td bgcolor="#FFFFFF"><div align="center">
			#if($order.status==0)
			<!--a href="/manage_order.ad?parameter=edit&id=$!order.id"><img src="/include/manage/images/main/edt.gif" width="16" height="16" align="absmiddle" />编辑</a-->&nbsp; &nbsp;
			#else
			<a href="/manage_order.ad?parameter=delete&id=$!order.id"><img src="/include/manage/images/main/del.gif" width="16" height="16" align="absmiddle" />删除</a>
			#end
    </div></td>
  </tr>
  #end
        </table></td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;&nbsp;共有 $!rows 个关键字，当前第 $!currentPage/$!totalPage 页</td>
            <td><table border="0" align="right" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="40"><a href="/manage_order.ad?parameter=page&page=1"><img src="/include/manage/images/main/first.gif" width="37" height="15" /></a></td>
                  <td width="45">#if($frontPage<1)<img src="/include/manage/images/main/back-no.gif" width="43" height="15" />#else<a href="/manage_order.ad?parameter=page&page=$!frontPage"><img src="/include/manage/images/main/back.gif" width="43" height="15" /></a>#end</td>
                  <td width="45">#if($nextPage>$totalPage)<img src="/include/manage/images/main/next-no.gif" width="43" height="15" />#else<a href="/manage_order.ad?parameter=page&page=$!nextPage"><img src="/include/manage/images/main/next.gif" width="43" height="15" /></a>#end</td>
                  <td width="40"><a href="/manage_order.ad?parameter=page&page=$!totalPage"><img src="/include/manage/images/main/last.gif" width="37" height="15" /></a></td>
                  <td width="100"><div align="center"><span>转到第
                    <input id="goPage" name="goPage" type="text" size="4" style="height:16px; width:20px; border:1px solid #999999;" /> 
                    页 </span></div></td>
                  <td width="40"><a href="javascript:location.href='/manage_order.ad?parameter=page&page='+document.getElementById('goPage').value"><img src="/include/manage/images/main/go.gif" width="37" height="15" /></a></td>
                </tr>
            </table></td>
          </tr>
        </table>
</td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>